package org.spring.bean;

import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 *
 * @author liubin
 *
 * @date 2018年3月1日上午10:09:14
 */
public class App {

    public static void main(String[] args) {
        ConfigurableApplicationContext context =
                new ClassPathXmlApplicationContext(new String[] {"applicationContext.xml"});

        CustomerService cust = (CustomerService) context.getBean("customerService");

        System.out.println(cust);

        context.close();
    }
}
